<?php
session_start();
header("Content-Type: text/html;charset=utf-8"); 
require 'lyb_conn.php';
$sql="delete from n1 where id='$_GET[id]'";
mysqli_query($con, $sql);
echo "<script type='text/javascript'>alert('删除成功！');</script>";
//echo "<script type='text/javascript'>window.location.href='index.php'</script>";
echo "<script type='text/javascript'>window.location.href='$_SESSION[url]'</script>";
?>

